/*************************************************************************
 *                                                                       *
 * This file is part of the FreeMAPs distribution.  For full copyright   *
 * information, see COPYRIGHT and COPYING.LESSER.                        *
 *                                                                       *
 * Author:           sqbang                                              *
 * Email:            sqbang@ustc.edu                                     *
 * Date:             2015.07.10                                          *
 * Description:      all regions info                                    *
 *                                                                       *
 *************************************************************************/

namespace FreeMAPs
{

inline bool
RegionInfo::is_empty() const
{
    return d_regions.empty();
}


inline bool
RegionInfo::has_region (
    const std::string& region_name) const
{
    return (d_regions.count (region_name) > 0);
}


inline const std::map<std::string, Region*>&
RegionInfo::get_regions() const
{
    return d_regions;
}


inline const std::map<std::string, const SimpleRegion*>&
RegionInfo::get_simple_regions() const
{
    return d_simple_regions;
}

} //namespace FreeMAPs
